package com.one.common.core.constants;

public class CacheConstants {
    /**
     * Token过期时间
     */
    public final static long EXP = 720L;

    /**
     * 剩余Token时间
     */
    public final static long REFRESH_TIME = 180L;

    /**
     * 用户身份认证统一前缀
     */
    public final static String LOGIN_TOKEN_KEY = "loginToken:";

    /**
     * 手机验证码统一前缀
     */
    public final static String PHONE_CODE_KEY = "phoneCode:";

    /**
     * 手机当天验证码发送次数统一前缀
     */
    public final static String CODE_TIME_KEY = "codeTime:";

    public final static String EXAM_UNFINISHED_LIST = "e:t:l"; // 未完赛竞赛列表

    public final static String EXAM_HISTORY_LIST = "e:h:l";  // 历史竞赛列表

    public final static String EXAM_DETAIL = "e:d:";    //竞赛详情信息

    public final static String USER_EXAM_LIST = "u:e:l:";    //用户竞赛列表信息

    public final static String USER_DETAIL = "u:d:";    //用户详情信息

    public final static String QUESTION_LIST = "q:l";    //用户题库列表信息

    public final static String EXAM_QUESTION_LIST = "e:q:l";    //竞赛答题列表信息

    public final static String HOT_QUESTION_LIST = "h:q:l";    //热榜题目列表信息

    public final static String USER_MESSAGE_LIST = "u:m:l";    //我的消息列表

    public final static String MESSAGE_DETAIL = "m:d:";        //消息详情信息

    public final static String EXAM_RANK_LIST = "e:r:l";       //竞赛排名

}
